﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _5UML类图
{
    /// <summary>
    /// 动物
    /// </summary>
    abstract class Animal
    {
        /// <summary>
        /// 生命
        /// </summary>
        public string Life;
        /// <summary>
        /// 新陈代谢
        /// </summary>
        /// <param name="oxygen">氧气</param>
        /// <param name="water">水</param>
        /// <returns></returns>
        public Metabolism Metabole(Oxyen oxygen, Water water)
        {
            return null;
        }
    }
    /// <summary>
    /// 新陈代谢
    /// </summary>
    class Metabolism { }
    /// <summary>
    /// 氧气
    /// </summary>
    class Oxyen { }
    /// <summary>
    /// 水
    /// </summary>
    class Water { }
    class Brid : Animal
    {
        /// <summary>
        /// 羽毛
        /// </summary>
        public string Feather;
        /// <summary>
        /// 牙齿
        /// </summary>
        public string Tooth;
        /// <summary>
        /// 下蛋
        /// </summary>
        public void LayEggs() { }
        /// <summary>
        /// 翅膀
        /// </summary>
        private Wing wing;
        public Brid()
        {
            wing = new Wing();
        }
    }
    /// <summary>
    /// 翅膀
    /// </summary>
    class Wing { }
    /// <summary>
    /// 鸭子
    /// </summary>
    class Duck : Brid { }
    /// <summary>
    /// 唐老鸭
    /// </summary>
    class DonaldDuck : Duck, ILanguage
    {
        public void Speak() { }
    }
    /// <summary>
    /// 企鹅
    /// </summary>
    class Penguin : Brid
    {
        private Climate climate;
    }
    /// <summary>
    /// 气候
    /// </summary>
    class Climate { }
    /// <summary>
    /// 大雁
    /// </summary>
    class WideGoose : Brid, IFly
    {
        public void Fly() { }
    }
    /// <summary>
    /// 雁群
    /// </summary>
    class WideGooseAggregate
    {
        private List<WideGoose> ListWideGoose;
    }
    /// <summary>
    /// 飞
    /// </summary>
    interface IFly
    {
        void Fly();
    }
    /// <summary>
    /// 讲话
    /// </summary>
    interface ILanguage
    {
        void Speak();
    }
}
